﻿using ETask.Api.Models;

namespace ETask.Api.Dtos
{
    public class ProjectDocDto:BaseDto
    {
        public int ProjectId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 附件文件夹id
        /// </summary>
        public string FolderId { get; set; }

        /// <summary>
        /// 是否共享
        /// </summary>
        public bool IsShare { get; set; } = false;

        /// <summary>
        /// 标签
        /// </summary>
        public string Tips { get; set; }

        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateByName { get; set; }
    }

    public class CreateProjectDocDto
    {
        public int ProjectId { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public string FolderId { get; set; }
        public bool IsShare { get; set; } = false;
        public string Tips { get; set; }
    }

    public class UpdateProjectDocDto
    {
        public int Id { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public string FolderId { get; set; }
        public bool IsShare { get; set; }
        public string Tips { get; set; }
    }


    public class ProjectDocListParams
    {
        public int ProjectId { get; set; }

        public string Tip { get; set; }

        public PaginationParameters PageDto { get; set; }

        public string KeyWord { get; set; }

        public bool? IsShare { get; set; }

    }
}
